Skip to content

Update ci.yml#1045

Closed
rieder wants to merge 9 commits into
mainfrom
updates/ci-workflow
Closed

Update ci.yml#1045
rieder wants to merge 9 commits into
mainfrom
updates/ci-workflow

Conversation

@rieder

@rieder rieder commented Apr 23, 2024

Copy link
Copy Markdown
Member

No description provided.

@rieder rieder marked this pull request as ready for review April 23, 2024 13:41
@rieder rieder requested a review from a team as a code owner April 23, 2024 13:41

@LourensVeen LourensVeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, but we should probably pick one tool and not run two, as they may end up fighting each other. Also, possibly ruff should be under consideration too?

Comment thread .github/workflows/lint.yml Outdated
uses: wearerequired/lint-action@v2
with:
black: true
flake8: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we only call black then, and not flake8?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for checking, not fixing. So I don't mind running both. For fixing syntax we should make a choice.

- disable flake8
- enable black
- enable (black_)auto_fix ONLY for pull requests, not for pushing to main directly
@rieder

rieder commented May 1, 2024

Copy link
Copy Markdown
Member Author

Nice, but we should probably pick one tool and not run two, as they may end up fighting each other. Also, possibly ruff should be under consideration too?

yes we should decide which tool(s) we would want. black and flake8 don't do exactly the same thing, so for checks we may want to use both. Or ruff, I'll have a look at that too.

@rieder

rieder commented May 8, 2024

Copy link
Copy Markdown
Member Author

@LourensVeen I'm not sure how to test the auto-fix part of this, do you have any ideas for that?

@rieder

rieder commented May 12, 2024

Copy link
Copy Markdown
Member Author

I've tested it on a different repository now. The linter will push a fix to the branch in the PR, which seems fine to me.

@rieder

rieder commented May 22, 2024

Copy link
Copy Markdown
Member Author

I'm just not sure yet if this will fix only the files affected by the PR (which should be how this works) or if it checks all other files too (which I really really don't want). Need to be sure of that before merging.

@stale

stale Bot commented Jul 21, 2024

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the status: stale Issues that have been around for a while without updates label Jul 21, 2024
@rieder rieder added status: keep-open This issue should not be auto-closed by the bot and removed status: stale Issues that have been around for a while without updates labels Aug 12, 2024
@rieder

rieder commented Sep 23, 2025

Copy link
Copy Markdown
Member Author

Obsoleted by #1137

@rieder rieder closed this Sep 23, 2025
@rieder rieder deleted the updates/ci-workflow branch September 23, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: keep-open This issue should not be auto-closed by the bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants